﻿
using DA.Core.Mes;
using DA.Core.Plcs;
using DA.Model.Configure;
using DA.Model.DB;
using Org.BouncyCastle.Cms;
using System.Windows.Input;

namespace DA.Core.WorkFlows
{
    public class CommonWorkFlow1:BaseWorkFlow
    {
       
        public CommonWorkFlow1():base()
        {
            FlowName = nameof(CommonWorkFlow1);
        }
        public override async void DoWorkFlow(IBasePlc plc, IClient client, DA.Model.Configure.Station station)
        {
            while (true)
            {
                await Task.Delay(100);
                //read all variables A, B, C
                //var result = await ReadPlcVar(plc, station, "");
                //if (result ==1)
                //{

                //}
                //var result2 = await ReadPlcVar(plc, station, "");
                //if (result2 ==1)
                //{

                //}

            }
        }
    }
}